package top.chmin.project.cloud.sys.table.info;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.Page;

import java.util.List;



/**
 * chmin
 * 2024-01-25 14:19:37
 * cloud-code
 */
@RestController
public class TableInfoController implements
/* append $controllerSelectOptionRestAppender$ */
        TableInfoSaveRest,
        TableInfoSelectRest,
        TableInfoUpdateRest,
        TableInfoDeleteRest,
        TableInfoPageRest {

    @Resource
    private TableInfoService tableInfoService;

    @Override
    public int save(TableInfoSaveRest.P p) {
        return tableInfoService.save(p);
    }

    @Override
    public TableInfoSelectRest.R select(TableInfoSelectRest.P p) {
        return tableInfoService.select(p);
    }

    @Override
    public int update(TableInfoUpdateRest.P p) {
        return tableInfoService.update(p);
    }

    @Override
    public int delete(TableInfoDeleteRest.P p) {
        return tableInfoService.delete(p);
    }

    @Override
    public Page<TableInfoPageRest.R> page(TableInfoPageRest.P p) {
        return tableInfoService.page(p);
    }
    /* append $controllerSelectOptionMethodAppender$ */
}
